package demo.service.impl;

import demo.mapper.UserMapper;
import demo.pojo.User;
import demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User isUser(User user) {
        return userMapper.isUser(user);
    }

    @Override
    public User searchUserById(Integer id) {
        return userMapper.searchUserById(id);
    }
}
